package com.panasonic.web.domain.cms;

import com.panasonic.common.annotation.Excel;
import com.panasonic.common.core.domain.BaseEntity;
import lombok.Data;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;


/**
 * 考试记录对象 cms_exam_record
 * 
 * @author lwf
 * @date 2021-11-16
 */
@Data
public class CmsExamRecord extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 用户id */
    @Excel(name = "用户id")
    private Long userId;

    /** 考试编号 */
    @Excel(name = "考试编号")
    private Long examId;

    /** 题目编号 */
    @Excel(name = "题目编号")
    private Long questionId;

    /** 题目答案 */
    @Excel(name = "题目答案")
    private String answer;

    /** 分数 */
    @Excel(name = "分数")
    private Integer score;

    /** 状态 0 未批改 1 已经批改 */
    @Excel(name = "状态 0 未批改 1 已经批改")
    private Long status;

    /** 批阅人 */
    @Excel(name = "批阅人")
    private Long approver;

    /** 批阅人 */
    @Excel(name = "批阅人")
    private String approverBy;

    /**
     * 分数id
     */
    private  Long scoreId;



    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("userId", getUserId())
            .append("examId", getExamId())
            .append("questionId", getQuestionId())
            .append("answer", getAnswer())
            .append("score", getScore())
            .append("status", getStatus())
            .append("approver", getApprover())
            .append("approverBy", getApproverBy())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
